//
// Created by hkkzzxz on 24-9-1.
//

#ifndef YUNSHI_ADMINSERVICE_H
#define YUNSHI_ADMINSERVICE_H

// 管理员业务逻辑实现类

#include "IAdminService.h"

class AdminService : public IAdminService {
    // 添加员工
    bool addEmployee(const std::string &id, const std::string &name,
                     const std::string &phone_number) override;

    // 设置全部考勤规则
    bool setAllAttendanceRules(const std::string &morningStartTime,
                               const std::string &eveningEndTime) override;

    // 设置单人考勤规则
    bool setAttendanceRules(const std::string &id, const std::string &morningStartTime,
                            const std::string &eveningEndTime) override;

    // 删除员工
    bool deleteEmployee(const std::string &id, const std::string &name) override;

    // 查询员工考勤规则
    std::string checkAttendanceRules() override;

    // 查询所有员工信息接口
    std::string employeeInformation() override;

    // 查询所有考勤情况
    std::string checkAttendance() override;

    // 导出考勤报表
    std::string exportReport() override;

    // 同步（替换）考勤数据
    bool synchronizeData(std::string &data) override;
};


#endif //YUNSHI_ADMINSERVICE_H
